Fixed class not being generated correctly when it has no constructor.