fix: Do some optimizations.