Ensure errors come from right place