fix warnings in spec