fix a bug in arguments check in exports