fixed stuff in case trailing / was missing in placePatch and checkLM