Add check to avoid errors on mobile web version