fix issue with editing preferences