fix the nasty ENOTEMPTY