Fix compile when DEBUG is set