Fixed me deleting the dlopen(...) method and added some comments to the block of code to explain what it dose a bit better