catched error when returning empty matrix data