Fixed problems with postion in errors.