Fix style loading
Fix padding measure bug