Fixed population graph, now works correctly