bug fix for initial startup