Variables types error fix