fix bug, when .data field is empty