fixing some modal format issues