Fixed layer range check.