fix for facebook registration