fixed assignment error on static directory