Fixed max check

- Changed maxaddress
- Changed BLT to BGT