fix problem on Mac - move gem to last operation