fixes that nasty little bug

that took wayyy too long.