fix issue found by patprzybilla