Fix warnings in Spin