libraries bug fixed