How was corruption a problem in the late medieval roman catholic church