Fixed small errors in conversion process.