Fixed mistake in computing entropy flow