Fix an issue with currentview not being set.