Fixed build error 1 by adding short delay to build script