fix exception findOneByDestinationUrl, array_pop