change `@post` to a local variable