Fixing slide bug