fixed the extend method for base dao