fix generate wrong path to layout