fixed undefined method path bug