fixed ternary case that somehow broke