applied fix from https://github.com/roman-yagodin/silver/commit/24cc3a816cff8893056637ec4905e7ad281074a3