Fixed more issues with TraktAPI code