Fix for last slide boolean