Fix bug in conversion entry point