Running errors in the right place