player constructor fix