Fix serialize palette offset