repaired site map logic