upload class bug