trying to fix a bug in tophat