fixing upload lib exception