Removed compiler warnings after seting vm