Fixing template classifier