Re #1468 Fixed apipie bug with decorator