Resolved a bug with optimized index for samsung : undefined console, etc.