fix exception type on signature errors