handle binding errors correctly