Fixes error in template