Fixed another bug in retools.