bugfix for filepath