add spec and fix.