Fix for % detection

Fix for % detection