fix for str -> bool casting