Profit-taking erases gains, KSE-100 settles 0.54% lower