Tweak code style
Fix a bug due to compression. fix #710