Fixed incorrect behaviour of post editor