BUG: fix version handling.