Fixed current_gemset function