Fixes to searchRes code for markers