Fixing error location for cards