Fix configuration of pop-ups on sub-layers with three fields

Addresses #14