Fix script parser