fix first undefined