debag errors (issue #4) (partially)