corrected errors if there is no items (OK button)
Merge pull request #82 from petrkl12/master

corrected errors if there is no items (OK button)