fix gemstone compile error