Fixed static path bug when in different dir