error catching fixed

fixed a problem where the error screen was raising