Minor bug fix for saving coursework specification

There was a minor bug with the ordering of functions, which caused the
specification object to be lost.