Fix error with intent