fixed issue where delete() does not work due to wrong method