beeg: added last page detection