Fix swimming's compile errors