Fix EXC_BAD_ACCESS error.