Fixed an error with 1.9.3 where #delete_if does not exist