From BBC
Inverness Caledonian Thistle head coach Duncan Ferguson: "I'm not sure if it's inside the box or it's not inside the box, but it's absolutely a free-kick.
"It's an easy decision and then they counter attack and that's it, they score from there. It should have been a penalty if it was inside the box, or it's a free-kick on the edge of the box, and then [the referee] compounds the problem by then saying to Cammy Kerr that he's simulated the first yellow card. It's a clear free-kick."
38 clearly fell over looking for a free kick, Kerr’s was a blatant dive.