Fix error 'site is not defined'