Bug fix

fix bug while using several cached images from one source