Fixed a regression introduced by commit #54c57330c419a597078170143398b33427114ae0