Fix

Just fixed a crash that occurs when give value is null.