Fixed error when calling sites page from resource panel