Bug fixes in order to be compatible with ActionScript.