Fix non-object notices