Fix bad check in button 'calculate'