Add missing commit() call when accessing shared preferences