Fixes undefined warnings on object subtypes