fixes a bug when src is not a pic