fixed a bug in server restore code

bumped to version 1.6.2

fixes #29