fix bug of def get_site