Fixed minor issues with stack layout function.