avoid "Atom cannot be cast to Variable" ClassCastException - resolves #90