fix prebuild event