You can't really blame this on corruption at all, at best you can blame the rules for being confusing and/or not given out clearly. The OP thought he could stay on his visa even after finishing studying, but that wasn't the case. His school is probably more at fault for not explaining it better.