Fixed negative numbers issue, and contents not being save on rotation