Small changes to correct a few logical errors in grounded and hang states.