I think i fixed a bug with inactivity check