Fixed cache system
Deleted useless var