fixes nested modal