bug fix.

disable error checking in DEBUG mode.