Fix object errors