Fixed bad access error.