fixed some weird behavior of page components