fix some code issues