fix constant paths, credit to Alton MacDonald