fix smarty layout