fixed unwrapping nil and double segue.