fix in for prepare js