Fixed #126 reported by Mateusz Warzyński