Avoid usafe use of head and added traceShow and TODO to investigate further