Fixed issue with path not getting drawn correctly.