fixed ext bugs