fixing references paths