fixed some bugs in early precharge mechanism