Fixed bug in flying.
Fixed possible problems
Fixed teleporting issues.