Fixes wrong file uploaded