Expected flowsequence cannot be null error