Fixed score error when no file in device