getFor type bug fixed