fixed object instantiation error