fix segfaults with empty statements