fix with loading template