fixed a bugg