Bug fix for slide mode