fix code in pre block