Why doesn’t the gelatin set up sometimes even if the room is cold enough?

If you heat the gelatin to over 140 degrees you will damage its ability to gel and it will loose its adhesive strength – you should dispose of it and start over.  If you cannot control the heating in a microwave the use a double boiler on the stove.