fix bug where same pic twice could be valid