Changed the not operator from * to ~