Fixed issue with double input