KLCI gains 0.29% amid lackluster market