workaround for rollback tree when ajax returns error