Fixes item positioning for some cases