Fixes attempt to yeild across C-call boundry