Fixing post functionality