Fixed error for case when schema is not set