fix for cached columns bug when using "select *"