quick fix for error ranges