Fixes issues with CCLayout