BUGFIX : fallback template not written to file descriptor