fixed bugs of ex6_27 and ex6_28