fixing endslate