fixing but operator

closes gh-83