Fixed a bug which java and awesome