Fixed bad 2.6 syntax for remove()