Maded a possible fix for calculating 'lastfield' property in 'check_entry'