Solved a stupid bug