Another fix for retrieving view name