fixing some code error.