fix before reference