fix bug when there's nothing when setting an after