Fix error when last_submission gets undefined due to indentation level