fixed jquery when adding new statement after no statements left