Fix some funny math

* Also use "true" instead 1 & 0