Fixed function.
Fixed bug.