Make sure the gelatin is fully dissolved and give the cake ample time in the refrigerator to set, preferably overnight.