Fixed bug in load cache