bug in saving