fixed #60 -- this would not (could not) have happened in a statically typed language