Bug on decorator creation