Fixed template error for bug #264

Fix for error #264