fixed Buffer reference issue in strict mode