fix modal so it will open up properly if default open state is true. fixes #33