fixed bugs of ex6_27 and ex6_28
Merge pull request #36 from pezy/upstream

fixed bugs of ex6_27 and ex6_28
Thx @Mr.M for reporting.