Fixed another bug spotted by @cr0hn.