fixing bugs from the wordpress import