Solved error of inexisting id after eating the page.
Final version