Fix potential crash with unsafe std asin
Remove some useless #if DEBUG