fixed some specs errors