fixes error cutoff issue #276