fix some bugs in twentytwelve