-- fix an error calculation