active formatting element bug fixes