Fix slim bugs with header