Fixed bug in ud_head