current site can be null, which failed on checks against undefined