#145 fixed bug about usleep function