Fixed bug in automated backbone selection