fix end blacket