fixed AfterBuild overwriting
Merge pull request #1 from ursenzler/master

fixed AfterBuild overwriting