Fixed several bugs with illusions