fix elements' count in popup