fix for bucket ref