minor fixes related to object recognition