Fixed class constructors detection