fix an error occured during tests