Bug hunting found another but have yet to fix it. AbsolutePath must be concious of the type of file