Fixing Preview from resource tree