Fix for : Error editing lesson labels.

Fix for issue in [this trello card](https://trello.com/c/utXFuri0).


:8ball: Beautiful example for the need of unit tests.