Fixed compile error

@seliopou please review
Merge remote-tracking branch 'frenetic/master' into templates