Moved errordiv to head for readability

It was overdrawing parameters in its former location.