fix spec validation