fixed row arrangement bug