Fixed bad context creation.