fixed #3: Exception while resetting password