fix the bug: crash when facebook upload photo element doesn't show up