Fix another bug in GenericList breaking layouts

Signed-off-by: Yoshi2889 <rick.2889@gmail.com>
Merge pull request #2017 from Yoshi2889/genericlist_fix

Fix another bug in GenericList breaking layouts