fixes in the options class
fix when deleting items from the db and were kept in cache