get_context_instance() is deprecated
Replaced deprecated function calls
Bugfix: misspelled variable name