Bug fix #311

The remove function doesn't work properly on iOS