fixed create barlayout bug
contrib file on20141027