fixed placement bug in layout