fix delayed bug