fixed bug where staff paths were captured wrong