fix choice pattern not getting displayed