fix for initial startup bug