Fix percent fault from javascript