coverity#1242524, arguments in wrong order