handle invalid objects ids