Fixed bug with no loading data from DB