Fixed some Debug stuffs.