Fixed a bug in mapping ligd in callback