bug fix for multisite