Fixes an issue with redirecting after failed save