The electoral college exists precisely so that population alone isn't the determiner. So it actually does what it is, in fact, intended to do.
It's designed that way so that bigger states with more people don't have cart blanche and smaller states with fewer people don't get just trampled underfoot.
You can debate if it's really a good thing that we have a system in place to try to balance out such things, but asserting that the electoral college doesn't work because Trump won with fewer votes basically says "I don't actually understand the thing."
It works exactly as it was designed to work.