diff --git a/build.sh b/build.sh
index fce545abd0c884609061a6f65c0d75c45dc2663d..3ea68c15416a66da11c2244348429d96e518b26d 100755
--- a/build.sh
+++ b/build.sh
@@ -85,14 +85,14 @@ if [ x"$comp_type" == x"full" ]; then
         install_options="-s"
 elif [ x"$comp_type" == x"intel" ]; then
         install_options=" "
-elif [ x"$comp_type" == x"asan" ]; then
-	foward_options="$foward_options --enable-asan"
 else
         install_options="-s -m"
 fi
 
 if [ x"$comp_type" == x"se_class" ]; then
 	foward_options="--enable-se-class1 --with-action-on-error=THROW_ON_ERROR"
+elif [ x"$comp_type" == x"asan" ]; then
+        foward_options="$foward_options --enable-asan"
 fi
 
 echo "Installing with: ./install $gpu_support  -i $dependency_dir $install_options -c \"$installation_dir $foward_options  \"  "