fix the error - the function pointer in pthread