fixed warnings that were as a result of the new es3 option.