Error fixes for paths array