fix flow errors with declarations