Fixed syntax errors in Intent code