fixes spinner change issue