Bugfix in code completion generation