Fixed bug in version handler