bug #4529 Undefined index: pos

Signed-off-by: Marc Delisle <marc@infomarc.info>