implemented fix for "No spec = error"