Fixed nullpointer when no datas available