The reason that food remains soft after cooking is usually because of one of the following reasons:
Too much food has been fried at the same time.
Oil did not reach temperature needed for food being cooked.
Food left sitting after frying.