Fixed bug, where without getting any data, the program would crash