fixing path reaload problem