fix the bug in 'Last' component