You didn’t grease it quite enough. Use plenty of butter or cooking spray all around the sides, the bottom, and even around the top of the tin around the openings.