Fixed bug in dynamic party contact lookup