Fixed seg fault when entering an odd number of & or | characters