fix bug Petr found =)