Fixing bugs in swping of detail posts