fix compile with DEBUG defined