Fix warnings in trans