Bugfix: handle values that are out of range when loading older project
files