fix convertToAbsolutePosition so that it works when a new element is added when the storage is empty.