fixes data initialization error