fix for initial page loading