Fix middleware get current site