fixed pull script