Change negative threshold to 0.

Signed-off-by: wsycharles0o <wsycharles0o@hotmail.com>