fixing bug with out data