fix crash on small result images