fix association optional statements