fix call to open library