fix error dict and static
fix errors