prevent resources generation when src is empty