fixed init checking