Fix bug, division by 0 and error without storages defined