fixed object reference error