Removing invalid package