Fix bug with gem platform