fixed some coding error.