fixed a bug in action :delete