added index to prevent strange mysql error