Fix half removed ref