Fix WP8 first register error

FIX Problem when first register in wp8 doesn't work because callback not
initialize before call to open.