Fix oversized object problem, and fix some new small palette bugs