Fix UI Bug

Fix bug where -1 file size would make UI crash