fix buildtype selection