fixed loggin bug issue with wrong path