Fixing off by one responsive problems