Fixed rendering not completing due to error with catch statement