Fix, some libraries weren't loaded in the beginning of the script