You mean he couldnt prepare them all that time he was in there? He does have spell mastery for a reason. Sure he couldnt cast them but he could memorize them. And even if that was the case he should have had his normal spells then since he probably went into it having those at least but being unable to cast them.