loading template fix