fixed long -> log bug