Fix edit library unit