Typo fix for remove function