fix error that occur randomly