small bug on parsing mode heads fixed