corrected bugs in afe component