it relies on the stock save function when you select a slot (the selected slot being very important)
can you show your code for what you are doing?