fix bug + switching sprites/index + save/load