logging out errors - redirecting to facebook

At times, when i log out, it goes to facebook? any ideas to prevent this?