Fixed bug: failureMemCLBuffer's scope is incorrect