fix lib check