Fix bug with API when passing ignore_message=0 (fix #7)