Various bugs in the pattern