fix assignment problem before assigned