Fixes some constructors that were methods, now are functions