Rectify null pointer exception when the user is exploring the alphabet