fixing bug when alchemy entities have null value