Fixed a bug that wasn't adding the correct constructor to the newly defined class.