Fixed possible errors.