Fix bugs of export and grab