bugfix player constructor