fix error by mamat