fix for a potentially laggy error