Fixing template locations