I've changed (\'.period\') by (\".period\"), function remove() is now working well as master branch