Fixed error with checking generation.
Close issue https://github.com/vknet/vk/issues/16