Fixed error with new keyword