Fix template path issue