loggin bug fixed.