fix nested design bug