fix add/delete member in project edit, members are now in teamId arrays
if parseint returns nan, set allocation to 0