fix overflows

Signed-off-by: Erica <e@energy7.com>
style footer

Signed-off-by: Erica <e@energy7.com>