Fix useModal - closes #268