added hasattr to check for attribute causing error in autocues