fix multiple spec bugs