Fixed errors in conversion script for octopus project