apply the previous fix to logicals and characters too