Fix issue in detection, pass buffer instead of string
Update version