fix the stupid time sleep bug