fix for afterbuild