Fix to bugfix, thanks to @illarionov.