Fix #37, The debug state is not working