fixed a stupid bug