fix wrong var usage
fix link detection in the left menu