fixing specs errors