Fixed improper [last] behavior inside [after]