Errors properly removed instead of emptied