Fixed script detection
Fixed script detection