Minor fix to decorator