fixing tab bug