fix a bug of intent