attempt to fix db reference