Fixed #8. Changed status for published  and draft pages (1 and 0)