Fixed the multi-context + multi-thread bug!