fix lua yield/resume bug