I fixed it. but code is stupid.