Fixed bounds checking

fixed wierd problem with github and bounds checking. all should be there