fixed AfterBuild overwriting