Fixed bad refs