* Fixed potential crash where context could be undefined