Fixed nasty failed bug

Fixed nasty failed bug