bug fix for last slide