fixed left over ref