fixed the bug with the Facebook API