fix the accessoryType issue