fix function calls on objects