Messed up ref