uploading swapped frame causes crash