lot of fixes in creating pattern

Merged Eclipse Webmaster requested to merge github/fork/GergoUjhelyi/master into master

Created by: GergoUjhelyi

last pull request before i destroy the code :)

Merge request reports