fixed bugs with ecos and bool vars