The pudding is frequently topped with meringue or whipped cream, which closes the top and prevents the bananas from being exposed to air . The bananas are also protected by the custard. Also, make sure you're not using overripe bananas.