Fixing wrong starting value at the update course function