Removed bug that caused js console error.