more fixes to error position