modals generator fixed