Fix bug when return if pattern with no stmt num