Error checking for seeking fixed