fixing bugs on Post edit page