fixed negative bug