fixed an end