Fix bug to allow to detect correctly native implementations