Fix View manager reference issue