bugfix: last_submission_for may return nil