Fix an issue with setting initial views size