Ensure right attributes are passing on error