fix optional unwrapping in docs