Yep, I think Flying Foxes and such need bigger tanks than 20gal. I have a ("False") Flying Fox in a 100gal tank, 4"+ and King of the tank.

They just need some room to swim or they might turn claustrophobic and "aggressive". I would return the poor guy...