* fixed compile bugs if DEBUG is enabled