fixed bug when no 'resources' folder is available