solves a bug in #138 from 42d64304; closes #140