fix undefined collection