fix spec test error