Fix bug in APC model storage adapter

@fauvel @alexispeter please review