fixed #318: error pos in for-statement