Fixed error with object creation syntax