fixing unboxed errors