fix some spec issues