Fix delete field bug