fixed div/mod by 0 crash