fixed bug in 12 and 13 problem