Hack fix for weird bug

Hacky fix for a weird bug where it wouldn't work 25% of the time.