Fixed bug in offline compression template parsing