fixed code warning