still hunting undefined bug