[FIX] contracts filter to prevent @contracts == nil