fix remaining issue on apply matrix