Fixed egregious bug