fix for values not getting saved. Should fix the github bug, too