fixed some stupid bug