Fixed bug with reading data on startup