fixed issue #1, thx lunarud