Attempted fix for callbacks messing with treema.