fixed error swallowing