Fixes filename not being passed correctly.