Fixed remove methods on MacOSX.