Fixed invalid reference