Jolie had a meltdown while working on film