fixed bug onclick of invalid page