Revert "Fixed Uncaught TypeError in SequentialLayout"

This reverts commit d8d1914263e0e1de0957d4eb95fe423f28fc2878.
Fixed Uncaught TypeError in SequentialLayout