fix 0 casting to false