Fix coverity issue (no POSITION attribute + use after move)