bug #4529 Undefined index: pos

Signed-off-by: Marc Delisle <marc@infomarc.info>
Merge branch 'QA_4_2'