fixing metadata bug on PostController