fix onActivityResult() bug in fragments