Fix record not showing due to scope