You might have used a too-small tin. Be sure to use a larger loaf tin to ensure an evenly baked bread. Also check your oven temperature!