fix to work with closure compiler