Fixed possible bug.