Fixed type mismatch warnings
Fixed initial value of spec