Fixed issue on resume