Fixed error
Log thread
Function of thread did't return value