fixed build permission issue