Fixes build warning and unused vars in convertSubForIb