Fixed bug in clean_page method