fixed bug that not allowed to remove a field