Quick fix for removing invalid object