Fixed problem where path was not been constructed correctly.