fix an issue when new keyword was not used on init