refs #1559 remove debug & fix bug