fix saving courses

yeh I'm learning (slowly)