Fix error about use of unitialized variables