Fix #0 issue and last slice issue