Fixed bug added by using ! as bitwise not, bitwise not is   the tilde.