fixed some spec issues