fixed broken check