fixes #770 : Persisting last cell language in variable

Using the variable instead of storing the language in an array