Fixing intent error