When logging in using Ultimate Facebook plugin, the plugin won't refresh the page

When logging in with Ultimate Facebook plugin, I'm not redirected and instead facebook's loading icon is displayed until I refresh the page manually.